// res.h - WGAL Resource management header
#ifndef WGAL_RES_H
#define WGAL_RES_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <wgal/common.h>

#ifdef __cplusplus
extern "C"
{
#endif // __cplusplus

WGALAPI WGALUInt32 wgalLoadResourceModule(WGALCString module);
WGALAPI WGALUInt32 wgalFreeResourceModule(WGALUInt32 module);
WGALAPI WGALVoid wgalFreeResourceModuleAll();
WGALAPI WGALUInt32 wgalLoadIcon(WGALCString path);
WGALAPI WGALUInt32 wgalLoadIconFromResource(WGALUInt32 module, WGALCString name);
WGALAPI WGALVoid wgalFreeIcon(WGALUInt32 iconId);
WGALAPI WGALVoid wgalFreeIconAll();

#ifdef __cplusplus
}
#endif // __cplusplus

// resource types
#define WGAL_RESTYPE_UNKNOWN	0x00
#define WGAL_RESTYPE_MODULE		0x01
#define WGAL_RESTYPE_ICON		0x02
#define WGAL_RESTYPE_TEXTURE	0x03
#define WGAL_RESTYPE_IMAGE		0x04
#define WGAL_RESTYPE_FONT		0x05

#endif // !WGAL_RES_H